package com.course.serviceI;

import java.io.FileNotFoundException;
import java.util.Vector;

import com.course.bean.AnnouncementTo;
import com.course.bean.CourseTo;
import com.course.exception.ConnectionException;
import com.course.exception.DataNotFoundException;
import com.course.exception.LoginException;

public interface CourseServiceI {
	
	
	public boolean insertCourse(CourseTo cb)throws LoginException,ConnectionException;
	public boolean deleteCourse(int courseid)throws LoginException,ConnectionException ;
	public Vector<CourseTo> viewCourse()throws DataNotFoundException;
	public Vector<CourseTo> viewCourseAt(int cid)throws DataNotFoundException;
	public boolean updateCourse(CourseTo cb)throws LoginException,ConnectionException;
	public boolean insertAnnouncement(AnnouncementTo ab)throws LoginException,ConnectionException;
	public Vector<AnnouncementTo> viewAnnouncement(int cid)throws DataNotFoundException;
	public Vector<AnnouncementTo> viewAllAnnouncement()throws DataNotFoundException;
	public boolean insertMaterial(CourseTo cb)throws FileNotFoundException,ConnectionException, LoginException;
	public Vector<CourseTo> viewMaterial(String path,int cid)throws DataNotFoundException;
	public Vector<CourseTo> getFaculty(int cid)throws DataNotFoundException;
	public Vector<CourseTo> getStudent(int cid)throws DataNotFoundException;

}
